//
//  SRMofiyPersonalBaseView.m
//  SportRing
//
//  Created by icelee on 14-10-31.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import "SRMofiyPersonalBaseView.h"

@implementation SRMofiyPersonalBaseView


-(void)awakeFromNib
{
    [super awakeFromNib];
    
    [self setupButtons];
    
    @weakify(self);
    
    [[self.cancelButton rac_signalForControlEvents:UIControlEventTouchUpInside]
     subscribeNext:^(id x) {
         [self_weak_.delegate didClickedCancelButton:self_weak_];
         [self_weak_ fadeOutToBottom:[ELBasePupupView getMainWindow]];
     }];
    
    [[self.sureButton rac_signalForControlEvents:UIControlEventTouchUpInside]
     subscribeNext:^(id x) {
         [self_weak_.delegate didClickedSureButton:self_weak_];
     }];
}

- (void)setupButtons
{
    
//    LGButtonColorPair * normalColor1 = [LGButtonColorPair colorPairWithTitleColor:[UIColor whiteColor]
//                                                                  backgroundColor:[UIColor colorWithRed:113.0/255.0
//                                                                                                  green:183.0/255.0
//                                                                                                   blue:20.0/255.0
//                                                                                                  alpha:1.0f]];
//    [self.cancelButton setColorPairs:@{@(LG_BUTTON_STATE_TYPE_NORMAL):normalColor1}];
//    
//    
//    LGButtonColorPair * normalColor2 = [LGButtonColorPair colorPairWithTitleColor:[UIColor whiteColor]
//                                                                  backgroundColor:[UIColor colorWithRed:218.0/255.0
//                                                                                                  green:218.0/255.0
//                                                                                                   blue:218.0/255.0
//                                                                                                  alpha:1.0f]];
//    [self.sureButton setColorPairs:@{@(LG_BUTTON_STATE_TYPE_NORMAL):normalColor2}];
}


@end
